<script type="text/javascript" >
$(document).ready(function(){
	$("#tgl_mulai,#tgl_selesai").datepicker({
		dateFormat: 'yy-mm-dd'
	});
});
</script>
<div class="outer-fill shadow padding15">
<!-- style untuk judul -->
            <div class="judul-page">
              Edit Magang
            </div>
<div class="col-md-12">
              <form class="form-horizontal" role="form" method="post" action="<?php echo site_url('admin_magang/proses_update')?>" onsubmit="return gsValidate('judul','Judul Harus Diisi','required');">
                <div class="form-group">
                  <label class="col-lg-2 control-label">Peserta</label>
                  <div class="col-lg-10">
                    <input type="text" name="asal_peserta" value="<?php echo $hasil['asal_peserta']?>" id="asal_peserta" class="form-control input-sm" placeholder="judul post">
					         <input type="hidden" name="id_magang" value="<?php echo $hasil['id_magang']?>" id="id" />
                  </div>
                </div>
				        
                <div class="form-group">
                  <label class="col-lg-2 control-label">Tgl Mulai</label>
                  <div class="col-lg-10">
                    <input type="text" name="tgl_mulai" value="<?php echo $hasil['tgl_mulai']?>" id="tgl_mulai" class="form-control input-sm"  placeholder="Tanggal mulai" readonly />
                  </div>
                </div>
                
                <div class="form-group">
                  <label class="col-lg-2 control-label">Tgl Selesai</label>
                  <div class="col-lg-10">
                    <input type="text" name="tgl_selesai" value="<?php echo $hasil['tgl_selesai']?>" id="tgl_selesai" class="form-control input-sm" placeholder="Tanggal selesai" readonly />
                  </div>
                </div>
                
                <div class="form-group">
                  <label class="col-lg-2 control-label">Divisi</label>
                  <div class="col-lg-10">
                    <select name="id_divisi" class="form-control input-sm">
                      <option value="1" <?php if ($hasil['id_divisi'] == 1){echo "selected";}?>>Software and Development</option>
                      <option value="2" <?php if ($hasil['id_divisi'] == 2){echo "selected";}?>>Infrastruktur</option>
                      <option value="3" <?php if ($hasil['id_divisi'] == 3){echo "selected";}?>>Internet Service Provider</option>
                    </select>
                  </div>
                </div>
                
               
                <div class="form-group">
                  <div class="col-lg-offset-2 col-lg-10">
                    <button type="submit" class="btn btn-primary btn-sm" name="simpan">Update</button>
                    <button type="reset" class="btn btn-warning btn-sm" name="reset">Reset</button>
                  </div>
                </div>
              </form>
            </div>
<div class="clearfix"></div>
</div>
<script type="text/javascript">
var editor=CKEDITOR.replace( 'konten',{					
			extraPlugins : 'autogrow',					
			uiColor: '#DDDAC1',					
			toolbar :[[ 'Bold', 'Italic', '-', 'NumberedList', 'BulletedList', '-', 'Link', 'Unlink','Image' ],						[ 'Styles','Format','Font','FontSize' ],
					['JustifyLeft','JustifyCenter','JustifyRight','JustifyBlock'],
					[ 'UIColor','-','Source' ]]		
	} );
CKFinder.setupCKEditor( editor, '<?php echo base_url()?>asset_bo/ckfinder/' ) ;
</script>